//
//  ExercisesQuqestionChoiceItemCell.h
//  ShowYork
//
//  Created by hxh on 2020/9/8.
//  Copyright © 2020 hxh. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ExercisesAnswerItemModel.h"
#import "ExercieseQuestionItemModel.h"
#import "ExercisesQuestionChoiceItemModel.h"
NS_ASSUME_NONNULL_BEGIN

@protocol ExercisesQuqestionChoiceItemCellDelegate <NSObject>

@optional

- (void)selectedChoiceWithModel:(ExercisesQuestionChoiceItemModel *)model;
- (void)updateTableViewFrame;

@end

@interface ExercisesQuqestionChoiceItemCell : UITableViewCell
+(instancetype)cellWithTableView:(UITableView *)tableView;

@property (nonatomic,weak)id<ExercisesQuqestionChoiceItemCellDelegate>delegate;

@property (nonatomic,strong)ExercisesQuestionChoiceItemModel *model;



/// 答案解析方法
/// @param choiceModel 选项
/// @param answerModel 我的
/// @param correctModel 正确
- (void)setQuqestionChoiceModel:(ExercisesQuestionChoiceItemModel *)choiceModel answerModel:(ExercisesAnswerItemModel *)answerModel correntModel:(ExercieseQuestionItemModel *)correctModel;

@end

NS_ASSUME_NONNULL_END
